<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;

$this->title = Yii::t('app', 'car Brands');
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
    th{background:#CAE1FF}
</style>
<h1><?= Html::encode($title) ?></h1>
<p>
    <a href="<?php echo Url::to(['car-info-edit', 'id' => $data->id, 'brand_id' => $brand_id, 'model_id' => $model_id, 'title' => $title]); ?>" class="btn btn-primary">
        更新
    </a>
    <a href="<?php echo Url::to(['car-info-image', 'id' => $data->id, 'brand_id' => $brand_id, 'model_id' => $model_id, 'title' => $title]); ?>" class="btn btn-warning">
        查看图片
    </a>
</p>
<br>
<table  class="table table-striped table-bordered">
    <tr>
        <th>名称</th>
        <th>版本</th>
        <th>车型</th>
        <th>排量</th>
        <th>座位数</th>
    </tr>
    <tr>
        <td><?php echo $data->name; ?></td>
        <td><?php echo $data->content; ?></td>
        <td><?php echo $data->edition; ?></td>
        <td><?php echo $data->displacement; ?></td>
        <td><?php echo $data->seating; ?></td>
    </tr>
    <tr>
        <th>价格</th>
        <th>长度</th>
        <th>宽度</th>
        <th>高度</th>
        <th>轴距</th>
    </tr>
    <tr>
        <td><?php echo $data->price; ?></td>
        <td><?php echo $data->length; ?></td>
        <td><?php echo $data->width; ?></td>
        <td><?php echo $data->height; ?></td>
        <td><?php echo $data->wheelbase; ?></td>
    </tr>
    <tr>
        <th>驱动方式</th>
        <th>能源</th>
        <th>级别</th>
        <th>最高车速</th>
        <th>0-100km/h加速时间</th>
    </tr>
    <tr>
        <td><?php echo $data->drive; ?></td>
        <td><?php echo $data->energy; ?></td>
        <td><?php echo $data->level_info; ?></td>
        <td><?php echo $data->highest_km; ?></td>
        <td><?php echo $data->accelerate; ?></td>
    </tr>
    <tr>
        <th>气缸数</th>
        <th>发动机型号</th>
        <th>最大马力</th>
        <th>最大功率</th>
        <th>最大功率转速</th>
    </tr>
    <tr>
        <td><?php echo $data->cylinder; ?></td>
        <td><?php echo $data->engine_type; ?></td>
        <td><?php echo $data->horsepower; ?></td>
        <td><?php echo $data->power; ?></td>
        <td><?php echo $data->speed; ?></td>
    </tr>
    <tr>
        <th>最大扭矩</th>
        <th>最大扭矩转速</th>
        <th>油耗</th>
        <th>油箱容积</th>
        <th>上市时间</th>
    </tr>
    <tr>
        <td><?php echo $data->torque; ?></td>
        <td><?php echo $data->torque_speed; ?></td>
        <td><?php echo $data->oil_wear; ?></td>
        <td><?php echo $data->tank; ?></td>
        <td><?php echo $data->list_time; ?></td>
    </tr>
    <tr>
        <th>停产时间</th>
    </tr>
    <tr>
        <td><?php echo $data->stop_time; ?></td>
    </tr>
</table>
<table  class="table table-striped table-bordered">
    <tr>
        <th>一句话简介</th>
    </tr>
    <tr>
        <td><?php echo $data->car_info; ?></td>
    </tr>
    <tr>
        <th>故事内容</th>
    </tr>
    <tr>
        <td><?php echo $data->remarks; ?></td>
    </tr>
</table>


